package com.washmadam.service.db.example;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CustomerOrderCommunicateExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CustomerOrderCommunicateExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIsNull() {
            addCriterion("customer_id is null");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIsNotNull() {
            addCriterion("customer_id is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerIdEqualTo(Long value) {
            addCriterion("customer_id =", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotEqualTo(Long value) {
            addCriterion("customer_id <>", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdGreaterThan(Long value) {
            addCriterion("customer_id >", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdGreaterThanOrEqualTo(Long value) {
            addCriterion("customer_id >=", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdLessThan(Long value) {
            addCriterion("customer_id <", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdLessThanOrEqualTo(Long value) {
            addCriterion("customer_id <=", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIn(List<Long> values) {
            addCriterion("customer_id in", values, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotIn(List<Long> values) {
            addCriterion("customer_id not in", values, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdBetween(Long value1, Long value2) {
            addCriterion("customer_id between", value1, value2, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotBetween(Long value1, Long value2) {
            addCriterion("customer_id not between", value1, value2, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerNameIsNull() {
            addCriterion("customer_name is null");
            return (Criteria) this;
        }

        public Criteria andCustomerNameIsNotNull() {
            addCriterion("customer_name is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerNameEqualTo(String value) {
            addCriterion("customer_name =", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameNotEqualTo(String value) {
            addCriterion("customer_name <>", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameGreaterThan(String value) {
            addCriterion("customer_name >", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameGreaterThanOrEqualTo(String value) {
            addCriterion("customer_name >=", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameLessThan(String value) {
            addCriterion("customer_name <", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameLessThanOrEqualTo(String value) {
            addCriterion("customer_name <=", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameLike(String value) {
            addCriterion("customer_name like", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameNotLike(String value) {
            addCriterion("customer_name not like", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameIn(List<String> values) {
            addCriterion("customer_name in", values, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameNotIn(List<String> values) {
            addCriterion("customer_name not in", values, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameBetween(String value1, String value2) {
            addCriterion("customer_name between", value1, value2, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameNotBetween(String value1, String value2) {
            addCriterion("customer_name not between", value1, value2, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderIdIsNull() {
            addCriterion("customer_order_id is null");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderIdIsNotNull() {
            addCriterion("customer_order_id is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderIdEqualTo(Long value) {
            addCriterion("customer_order_id =", value, "customerOrderId");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderIdNotEqualTo(Long value) {
            addCriterion("customer_order_id <>", value, "customerOrderId");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderIdGreaterThan(Long value) {
            addCriterion("customer_order_id >", value, "customerOrderId");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderIdGreaterThanOrEqualTo(Long value) {
            addCriterion("customer_order_id >=", value, "customerOrderId");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderIdLessThan(Long value) {
            addCriterion("customer_order_id <", value, "customerOrderId");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderIdLessThanOrEqualTo(Long value) {
            addCriterion("customer_order_id <=", value, "customerOrderId");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderIdIn(List<Long> values) {
            addCriterion("customer_order_id in", values, "customerOrderId");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderIdNotIn(List<Long> values) {
            addCriterion("customer_order_id not in", values, "customerOrderId");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderIdBetween(Long value1, Long value2) {
            addCriterion("customer_order_id between", value1, value2, "customerOrderId");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderIdNotBetween(Long value1, Long value2) {
            addCriterion("customer_order_id not between", value1, value2, "customerOrderId");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderSerivceIdIsNull() {
            addCriterion("customer_order_serivce_id is null");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderSerivceIdIsNotNull() {
            addCriterion("customer_order_serivce_id is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderSerivceIdEqualTo(Long value) {
            addCriterion("customer_order_serivce_id =", value, "customerOrderSerivceId");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderSerivceIdNotEqualTo(Long value) {
            addCriterion("customer_order_serivce_id <>", value, "customerOrderSerivceId");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderSerivceIdGreaterThan(Long value) {
            addCriterion("customer_order_serivce_id >", value, "customerOrderSerivceId");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderSerivceIdGreaterThanOrEqualTo(Long value) {
            addCriterion("customer_order_serivce_id >=", value, "customerOrderSerivceId");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderSerivceIdLessThan(Long value) {
            addCriterion("customer_order_serivce_id <", value, "customerOrderSerivceId");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderSerivceIdLessThanOrEqualTo(Long value) {
            addCriterion("customer_order_serivce_id <=", value, "customerOrderSerivceId");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderSerivceIdIn(List<Long> values) {
            addCriterion("customer_order_serivce_id in", values, "customerOrderSerivceId");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderSerivceIdNotIn(List<Long> values) {
            addCriterion("customer_order_serivce_id not in", values, "customerOrderSerivceId");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderSerivceIdBetween(Long value1, Long value2) {
            addCriterion("customer_order_serivce_id between", value1, value2, "customerOrderSerivceId");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderSerivceIdNotBetween(Long value1, Long value2) {
            addCriterion("customer_order_serivce_id not between", value1, value2, "customerOrderSerivceId");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderSerivceNumIsNull() {
            addCriterion("customer_order_serivce_num is null");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderSerivceNumIsNotNull() {
            addCriterion("customer_order_serivce_num is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderSerivceNumEqualTo(Integer value) {
            addCriterion("customer_order_serivce_num =", value, "customerOrderSerivceNum");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderSerivceNumNotEqualTo(Integer value) {
            addCriterion("customer_order_serivce_num <>", value, "customerOrderSerivceNum");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderSerivceNumGreaterThan(Integer value) {
            addCriterion("customer_order_serivce_num >", value, "customerOrderSerivceNum");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderSerivceNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("customer_order_serivce_num >=", value, "customerOrderSerivceNum");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderSerivceNumLessThan(Integer value) {
            addCriterion("customer_order_serivce_num <", value, "customerOrderSerivceNum");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderSerivceNumLessThanOrEqualTo(Integer value) {
            addCriterion("customer_order_serivce_num <=", value, "customerOrderSerivceNum");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderSerivceNumIn(List<Integer> values) {
            addCriterion("customer_order_serivce_num in", values, "customerOrderSerivceNum");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderSerivceNumNotIn(List<Integer> values) {
            addCriterion("customer_order_serivce_num not in", values, "customerOrderSerivceNum");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderSerivceNumBetween(Integer value1, Integer value2) {
            addCriterion("customer_order_serivce_num between", value1, value2, "customerOrderSerivceNum");
            return (Criteria) this;
        }

        public Criteria andCustomerOrderSerivceNumNotBetween(Integer value1, Integer value2) {
            addCriterion("customer_order_serivce_num not between", value1, value2, "customerOrderSerivceNum");
            return (Criteria) this;
        }

        public Criteria andHandlePersonIsNull() {
            addCriterion("handle_person is null");
            return (Criteria) this;
        }

        public Criteria andHandlePersonIsNotNull() {
            addCriterion("handle_person is not null");
            return (Criteria) this;
        }

        public Criteria andHandlePersonEqualTo(String value) {
            addCriterion("handle_person =", value, "handlePerson");
            return (Criteria) this;
        }

        public Criteria andHandlePersonNotEqualTo(String value) {
            addCriterion("handle_person <>", value, "handlePerson");
            return (Criteria) this;
        }

        public Criteria andHandlePersonGreaterThan(String value) {
            addCriterion("handle_person >", value, "handlePerson");
            return (Criteria) this;
        }

        public Criteria andHandlePersonGreaterThanOrEqualTo(String value) {
            addCriterion("handle_person >=", value, "handlePerson");
            return (Criteria) this;
        }

        public Criteria andHandlePersonLessThan(String value) {
            addCriterion("handle_person <", value, "handlePerson");
            return (Criteria) this;
        }

        public Criteria andHandlePersonLessThanOrEqualTo(String value) {
            addCriterion("handle_person <=", value, "handlePerson");
            return (Criteria) this;
        }

        public Criteria andHandlePersonLike(String value) {
            addCriterion("handle_person like", value, "handlePerson");
            return (Criteria) this;
        }

        public Criteria andHandlePersonNotLike(String value) {
            addCriterion("handle_person not like", value, "handlePerson");
            return (Criteria) this;
        }

        public Criteria andHandlePersonIn(List<String> values) {
            addCriterion("handle_person in", values, "handlePerson");
            return (Criteria) this;
        }

        public Criteria andHandlePersonNotIn(List<String> values) {
            addCriterion("handle_person not in", values, "handlePerson");
            return (Criteria) this;
        }

        public Criteria andHandlePersonBetween(String value1, String value2) {
            addCriterion("handle_person between", value1, value2, "handlePerson");
            return (Criteria) this;
        }

        public Criteria andHandlePersonNotBetween(String value1, String value2) {
            addCriterion("handle_person not between", value1, value2, "handlePerson");
            return (Criteria) this;
        }

        public Criteria andHasContactIsNull() {
            addCriterion("has_contact is null");
            return (Criteria) this;
        }

        public Criteria andHasContactIsNotNull() {
            addCriterion("has_contact is not null");
            return (Criteria) this;
        }

        public Criteria andHasContactEqualTo(Integer value) {
            addCriterion("has_contact =", value, "hasContact");
            return (Criteria) this;
        }

        public Criteria andHasContactNotEqualTo(Integer value) {
            addCriterion("has_contact <>", value, "hasContact");
            return (Criteria) this;
        }

        public Criteria andHasContactGreaterThan(Integer value) {
            addCriterion("has_contact >", value, "hasContact");
            return (Criteria) this;
        }

        public Criteria andHasContactGreaterThanOrEqualTo(Integer value) {
            addCriterion("has_contact >=", value, "hasContact");
            return (Criteria) this;
        }

        public Criteria andHasContactLessThan(Integer value) {
            addCriterion("has_contact <", value, "hasContact");
            return (Criteria) this;
        }

        public Criteria andHasContactLessThanOrEqualTo(Integer value) {
            addCriterion("has_contact <=", value, "hasContact");
            return (Criteria) this;
        }

        public Criteria andHasContactIn(List<Integer> values) {
            addCriterion("has_contact in", values, "hasContact");
            return (Criteria) this;
        }

        public Criteria andHasContactNotIn(List<Integer> values) {
            addCriterion("has_contact not in", values, "hasContact");
            return (Criteria) this;
        }

        public Criteria andHasContactBetween(Integer value1, Integer value2) {
            addCriterion("has_contact between", value1, value2, "hasContact");
            return (Criteria) this;
        }

        public Criteria andHasContactNotBetween(Integer value1, Integer value2) {
            addCriterion("has_contact not between", value1, value2, "hasContact");
            return (Criteria) this;
        }

        public Criteria andCommunicateTypeIsNull() {
            addCriterion("communicate_type is null");
            return (Criteria) this;
        }

        public Criteria andCommunicateTypeIsNotNull() {
            addCriterion("communicate_type is not null");
            return (Criteria) this;
        }

        public Criteria andCommunicateTypeEqualTo(Integer value) {
            addCriterion("communicate_type =", value, "communicateType");
            return (Criteria) this;
        }

        public Criteria andCommunicateTypeNotEqualTo(Integer value) {
            addCriterion("communicate_type <>", value, "communicateType");
            return (Criteria) this;
        }

        public Criteria andCommunicateTypeGreaterThan(Integer value) {
            addCriterion("communicate_type >", value, "communicateType");
            return (Criteria) this;
        }

        public Criteria andCommunicateTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("communicate_type >=", value, "communicateType");
            return (Criteria) this;
        }

        public Criteria andCommunicateTypeLessThan(Integer value) {
            addCriterion("communicate_type <", value, "communicateType");
            return (Criteria) this;
        }

        public Criteria andCommunicateTypeLessThanOrEqualTo(Integer value) {
            addCriterion("communicate_type <=", value, "communicateType");
            return (Criteria) this;
        }

        public Criteria andCommunicateTypeIn(List<Integer> values) {
            addCriterion("communicate_type in", values, "communicateType");
            return (Criteria) this;
        }

        public Criteria andCommunicateTypeNotIn(List<Integer> values) {
            addCriterion("communicate_type not in", values, "communicateType");
            return (Criteria) this;
        }

        public Criteria andCommunicateTypeBetween(Integer value1, Integer value2) {
            addCriterion("communicate_type between", value1, value2, "communicateType");
            return (Criteria) this;
        }

        public Criteria andCommunicateTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("communicate_type not between", value1, value2, "communicateType");
            return (Criteria) this;
        }

        public Criteria andCommunicateResultIsNull() {
            addCriterion("communicate_result is null");
            return (Criteria) this;
        }

        public Criteria andCommunicateResultIsNotNull() {
            addCriterion("communicate_result is not null");
            return (Criteria) this;
        }

        public Criteria andCommunicateResultEqualTo(String value) {
            addCriterion("communicate_result =", value, "communicateResult");
            return (Criteria) this;
        }

        public Criteria andCommunicateResultNotEqualTo(String value) {
            addCriterion("communicate_result <>", value, "communicateResult");
            return (Criteria) this;
        }

        public Criteria andCommunicateResultGreaterThan(String value) {
            addCriterion("communicate_result >", value, "communicateResult");
            return (Criteria) this;
        }

        public Criteria andCommunicateResultGreaterThanOrEqualTo(String value) {
            addCriterion("communicate_result >=", value, "communicateResult");
            return (Criteria) this;
        }

        public Criteria andCommunicateResultLessThan(String value) {
            addCriterion("communicate_result <", value, "communicateResult");
            return (Criteria) this;
        }

        public Criteria andCommunicateResultLessThanOrEqualTo(String value) {
            addCriterion("communicate_result <=", value, "communicateResult");
            return (Criteria) this;
        }

        public Criteria andCommunicateResultLike(String value) {
            addCriterion("communicate_result like", value, "communicateResult");
            return (Criteria) this;
        }

        public Criteria andCommunicateResultNotLike(String value) {
            addCriterion("communicate_result not like", value, "communicateResult");
            return (Criteria) this;
        }

        public Criteria andCommunicateResultIn(List<String> values) {
            addCriterion("communicate_result in", values, "communicateResult");
            return (Criteria) this;
        }

        public Criteria andCommunicateResultNotIn(List<String> values) {
            addCriterion("communicate_result not in", values, "communicateResult");
            return (Criteria) this;
        }

        public Criteria andCommunicateResultBetween(String value1, String value2) {
            addCriterion("communicate_result between", value1, value2, "communicateResult");
            return (Criteria) this;
        }

        public Criteria andCommunicateResultNotBetween(String value1, String value2) {
            addCriterion("communicate_result not between", value1, value2, "communicateResult");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNull() {
            addCriterion("is_delete is null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNotNull() {
            addCriterion("is_delete is not null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteEqualTo(Integer value) {
            addCriterion("is_delete =", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotEqualTo(Integer value) {
            addCriterion("is_delete <>", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThan(Integer value) {
            addCriterion("is_delete >", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_delete >=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThan(Integer value) {
            addCriterion("is_delete <", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThanOrEqualTo(Integer value) {
            addCriterion("is_delete <=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIn(List<Integer> values) {
            addCriterion("is_delete in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotIn(List<Integer> values) {
            addCriterion("is_delete not in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteBetween(Integer value1, Integer value2) {
            addCriterion("is_delete between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotBetween(Integer value1, Integer value2) {
            addCriterion("is_delete not between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andCreateByIsNull() {
            addCriterion("create_by is null");
            return (Criteria) this;
        }

        public Criteria andCreateByIsNotNull() {
            addCriterion("create_by is not null");
            return (Criteria) this;
        }

        public Criteria andCreateByEqualTo(Long value) {
            addCriterion("create_by =", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotEqualTo(Long value) {
            addCriterion("create_by <>", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByGreaterThan(Long value) {
            addCriterion("create_by >", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByGreaterThanOrEqualTo(Long value) {
            addCriterion("create_by >=", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLessThan(Long value) {
            addCriterion("create_by <", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLessThanOrEqualTo(Long value) {
            addCriterion("create_by <=", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByIn(List<Long> values) {
            addCriterion("create_by in", values, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotIn(List<Long> values) {
            addCriterion("create_by not in", values, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByBetween(Long value1, Long value2) {
            addCriterion("create_by between", value1, value2, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotBetween(Long value1, Long value2) {
            addCriterion("create_by not between", value1, value2, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateByIsNull() {
            addCriterion("update_by is null");
            return (Criteria) this;
        }

        public Criteria andUpdateByIsNotNull() {
            addCriterion("update_by is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateByEqualTo(Long value) {
            addCriterion("update_by =", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotEqualTo(Long value) {
            addCriterion("update_by <>", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByGreaterThan(Long value) {
            addCriterion("update_by >", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByGreaterThanOrEqualTo(Long value) {
            addCriterion("update_by >=", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByLessThan(Long value) {
            addCriterion("update_by <", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByLessThanOrEqualTo(Long value) {
            addCriterion("update_by <=", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByIn(List<Long> values) {
            addCriterion("update_by in", values, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotIn(List<Long> values) {
            addCriterion("update_by not in", values, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByBetween(Long value1, Long value2) {
            addCriterion("update_by between", value1, value2, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotBetween(Long value1, Long value2) {
            addCriterion("update_by not between", value1, value2, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}